package com.example.recordingpen_datacollection.result.exceptionhandler;

import com.example.recordingpen_datacollection.result.codemessage.HTTPCodeMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //生产有参数的构造方法、
@NoArgsConstructor  //生产无参的构造方法
public class BDxceptionV2{

    private  Integer error_code;//状态码
    private  String error_msg; //异常信息


    public BDxceptionV2(HTTPCodeMessage payloadTooLarge) {
        this.error_code = payloadTooLarge.getCode();
        this.error_msg = payloadTooLarge.getMessage();
    }
}
